package com.test.abstractANDinterface;

/**
 * 盼盼防盗门
 * 
 * @author Simple
 * @date 2013-8-14 下午03:12:55
 * @Description TODO
 */
public class PanPanDoor extends Door implements Alarm {

  public PanPanDoor(String version) {
    this.doorVersion=version;
  }

  @Override
  public void closed() {
    System.out.println("盼盼防盗门关闭!");
  }

  @Override
  public void open() {
    System.out.println("盼盼防盗门打开!");
  }

  public void alarm() {
    System.out.println("盼盼防盗门警报!");
  }

  public static void main(String[] args) {
    PanPanDoor ppd=new PanPanDoor("pp1.0");
    System.out.println(ppd.getDoorVersion());
    ppd.open();
    ppd.closed();
    ppd.alarm();
    ppd.alarm();
  }
}
